using System.ComponentModel.DataAnnotations.Schema;
using System.Data.Entity.ModelConfiguration;

namespace ConsoleApplication2.Models.Mapping
{
    public class PER_ExamLineMap : EntityTypeConfiguration<PER_ExamLine>
    {
        public PER_ExamLineMap()
        {
            // Primary Key
            this.HasKey(t => t.ID);

            // Properties
            // Table & Column Mappings
            this.ToTable("PER_ExamLine");
            this.Property(t => t.ID).HasColumnName("ID");
            this.Property(t => t.Exam).HasColumnName("Exam");
            this.Property(t => t.Tooth).HasColumnName("Tooth");
            this.Property(t => t.Mobility).HasColumnName("Mobility");
            this.Property(t => t.Furcation_1).HasColumnName("Furcation_1");
            this.Property(t => t.Furcation_2).HasColumnName("Furcation_2");
            this.Property(t => t.Bleeding_1).HasColumnName("Bleeding_1");
            this.Property(t => t.Bleeding_2).HasColumnName("Bleeding_2");
            this.Property(t => t.Bleeding_3).HasColumnName("Bleeding_3");
            this.Property(t => t.Bleeding_4).HasColumnName("Bleeding_4");
            this.Property(t => t.Bleeding_5).HasColumnName("Bleeding_5");
            this.Property(t => t.Bleeding_6).HasColumnName("Bleeding_6");
            this.Property(t => t.Suppuration_1).HasColumnName("Suppuration_1");
            this.Property(t => t.Suppuration_2).HasColumnName("Suppuration_2");
            this.Property(t => t.Suppuration_3).HasColumnName("Suppuration_3");
            this.Property(t => t.Suppuration_4).HasColumnName("Suppuration_4");
            this.Property(t => t.Suppuration_5).HasColumnName("Suppuration_5");
            this.Property(t => t.Suppuration_6).HasColumnName("Suppuration_6");
            this.Property(t => t.Calculus_1).HasColumnName("Calculus_1");
            this.Property(t => t.Calculus_2).HasColumnName("Calculus_2");
            this.Property(t => t.Calculus_3).HasColumnName("Calculus_3");
            this.Property(t => t.Calculus_4).HasColumnName("Calculus_4");
            this.Property(t => t.Calculus_5).HasColumnName("Calculus_5");
            this.Property(t => t.Calculus_6).HasColumnName("Calculus_6");
            this.Property(t => t.Plaque_1).HasColumnName("Plaque_1");
            this.Property(t => t.Plaque_2).HasColumnName("Plaque_2");
            this.Property(t => t.Plaque_3).HasColumnName("Plaque_3");
            this.Property(t => t.Plaque_4).HasColumnName("Plaque_4");
            this.Property(t => t.Plaque_5).HasColumnName("Plaque_5");
            this.Property(t => t.Plaque_6).HasColumnName("Plaque_6");
            this.Property(t => t.GM_1).HasColumnName("GM_1");
            this.Property(t => t.GM_2).HasColumnName("GM_2");
            this.Property(t => t.GM_3).HasColumnName("GM_3");
            this.Property(t => t.GM_4).HasColumnName("GM_4");
            this.Property(t => t.GM_5).HasColumnName("GM_5");
            this.Property(t => t.GM_6).HasColumnName("GM_6");
            this.Property(t => t.Recession_1).HasColumnName("Recession_1");
            this.Property(t => t.Recession_2).HasColumnName("Recession_2");
            this.Property(t => t.Recession_3).HasColumnName("Recession_3");
            this.Property(t => t.Recession_4).HasColumnName("Recession_4");
            this.Property(t => t.Recession_5).HasColumnName("Recession_5");
            this.Property(t => t.Recession_6).HasColumnName("Recession_6");
            this.Property(t => t.Pocket_1).HasColumnName("Pocket_1");
            this.Property(t => t.Pocket_2).HasColumnName("Pocket_2");
            this.Property(t => t.Pocket_3).HasColumnName("Pocket_3");
            this.Property(t => t.Pocket_4).HasColumnName("Pocket_4");
            this.Property(t => t.Pocket_5).HasColumnName("Pocket_5");
            this.Property(t => t.Pocket_6).HasColumnName("Pocket_6");
        }
    }
}
